home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 7 / FM Towns Free Software Collection 7.iso / taropyon / guilib3 / inc / dlg / dlg019.h next >
C/C++ Source or Header  |  1993-11-30  |  2KB  |  77 lines

  1. /*    :*****************************************************************
  2.     :    "dlg019.h" : リスト付き・文字列入力用ダイアログ
  3.     :-----------------------------------------------------------------
  4.     :    (ワイルドカード指定/選択用)
  5.     :*****************************************************************
  6. */
  7. #ifndef    _DLG019_H
  8. #define    _DLG019_H
  9.  
  10. #ifndef    _DIALOG_H
  11. #    include    <dialog.h>
  12. #endif
  13. #ifndef    _MOUSE_H
  14. #    include    <mouse.h>
  15. #endif
  16. #ifndef    _EVENT_H
  17. #    include    <event.h>
  18. #endif
  19. #ifndef    _GST_H
  20. #    include    <gst.h>
  21. #endif
  22. #ifndef    _MENU_H
  23. #    include    <menu.h>
  24. #endif
  25. #ifndef    _SBAR_H
  26. #    include    <sbar.h>
  27. #endif
  28.  
  29. typedef    struct _dlg019obj_t
  30. {
  31.     struct _dlg019obj_t        *next;
  32.     char                    *buf;
  33. } DLG019OBJ_T;
  34.  
  35. typedef struct
  36. {
  37.     DLG_T        *dlg;            /* ダイアログ            */
  38.     EVT_T        *evt;            /* イベント用            */
  39.     MOSTKP_T    *mosTk;            /* マウス作業用            */
  40.  
  41.     char        *title;            /* タイトル文字列        */
  42.     SBAR_T        *sb;            /* スクロールバー用        */
  43.     GST_T        *gst;            /* 文字列入力用            */
  44.     FRAME        fr;                /* リスト表示枠            */
  45.  
  46.     int            objNum;            /* 項目の数                */
  47.     DLG019OBJ_T    *topObj;        /* 先頭ポンイタ            */
  48.     EVT_T        *objEvt;        /* 項目選択用イベント    */
  49.     int            dspTop;            /* 表示先頭                */
  50.     int            dspXs;            /* 表示最大文字数        */
  51.     int            dspNum;            /* 表示可能な項目数        */
  52.     int            curPos;            /* カーソル位置            */
  53.     COLOR        colTbl[16];        /* カラーテーブル        */
  54. } DLG019_T;
  55.  
  56. #define    DLG019COL_THIL(par)    (par->colTbl[0])
  57. #define    DLG019COL_TSHA(par)    (par->colTbl[1])
  58. #define    DLG019COL_TBAC(par)    (par->colTbl[2])
  59. #define    DLG019COL_TSTR(par)    (par->colTbl[3])
  60.  
  61. #define    DLG019COL_SHIL(par)    (par->colTbl[4])
  62. #define    DLG019COL_SSHA(par)    (par->colTbl[5])
  63. #define    DLG019COL_SBAC(par)    (par->colTbl[6])
  64. #define    DLG019COL_SSTR(par)    (par->colTbl[7])
  65.  
  66. #define    DLG019COL_BHIL(par)    (par->colTbl[8])
  67. #define    DLG019COL_BSHA(par)    (par->colTbl[9])
  68. #define    DLG019COL_BBAC(par)    (par->colTbl[10])
  69. #define    DLG019COL_BSTR(par)    (par->colTbl[11])
  70.  
  71. #define    DLG019COL_DBAS(par)    (par->colTbl[12])
  72.  
  73. extern    COLOR    Dlg019colTbl[16];
  74. extern    int        DLG_019setGst( DLG_T *dlg, char *buf, size_t len, HIST_T *hist );
  75.  
  76. #endif
  77.